<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
      <title>Tagged with arrayindexoutofboundexception: -1 - Processing 2.x and 3.x Forum</title>
      <link>https://forum.processing.org/two/discussions/tagged/feed.rss?Tag=arrayindexoutofboundexception%3A+-1</link>
      <pubDate>Sun, 08 Aug 2021 19:16:42 +0000</pubDate>
         <description>Tagged with arrayindexoutofboundexception: -1 - Processing 2.x and 3.x Forum</description>
   <language>en-CA</language>
   <atom:link href="/two/discussions/taggedarrayindexoutofboundexception%3A+-1/feed.rss" rel="self" type="application/rss+xml" />
   <item>
      <title>array[x-1]?</title>
      <link>https://forum.processing.org/two/discussion/10810/array-x-1</link>
      <pubDate>Thu, 14 May 2015 17:51:09 +0000</pubDate>
      <dc:creator>SimCrafterXL</dc:creator>
      <guid isPermaLink="false">10810@/two/discussions</guid>
      <description><![CDATA[<p>Hi there,
I have a question, I have an array, and a variable x.
I want to know the values before and after x in the array.
But I have no clue how to read in the value before x.
I have tried two opportunities:</p>

<p><code>x--;
  if(rotarray[x][y] == true)
    return true;
  else
    return false;</code></p>

<p>and</p>

<p><code>if(rotarray[x-1][y] == true)</code></p>

<p>but both failed with "ArrayIndexOutOfBoundException: -1"</p>

<p>I am using Processing 2.2.1</p>
]]></description>
   </item>
   </channel>
</rss>